package com.woniuxy.microgoldservice.mapper;

import com.woniuxy.microgoldservice.bean.*;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author hongbin
 * @date 2021-04-07 14:22
 * Description：
 */

public interface GoldAccumulateMapper {

    List<GoldAccumulateInfo> selectAll(String name);

    int insert(GoldAccumulateInfo goldAccumulateInfo);

    int update(GoldAccumulateInfo goldAccumulateInfo);

    int delete( @Param("ids") Long[] ids);

    Long selectIdByType(String type);

    List<GoldDataTypeInfo> getAllTypeName();

    int goodsShelves(@Param("id")int id,@Param("accountState") int accountState);

    int soldOut(@Param("id")int id);

    List<GoldPAITpye> getGoldAPITpyes();

    List<RiskGrade> getRiskGrade();


    GoldAccumulateInfo selectById(Long id);

    List<GoldAccumulateInfo> selectDeleteData(Object o);

    int recoverData(Long id);

    int completelyDelete(Long[] ids);

    GoldAccumulateInfo selectProduct();

    GoldAccumulateInfo selectRate(Long productId);

    Long selectProId();

    Integer getGoldTpye();

    String selectDataTypeName(Integer typeId);

    Double queryInventory(Long proId);

    int inventoryReduction(@Param("proId") Long proId,@Param("grammage") BigDecimal grammage);

    int addSupportBank(BankInfo bankInfo);

    GoldAccumulateInfo selectProductInfo(Long proId);

    Double getARP(Long proId);

    String selectAppCode();
}
